<div class="produce list">
  <h2>Produce List</h2>

  <%= link_to("+ Add New Produce", {:action => 'new'}, :class => 'action new') %>
  
  <table class="listing" sumary="Cart list">
    <tr class="header">
		<th>&nbsp;</th>
		<th>Name</th>
		<th>Origin</th> <!--Xuat xu-->
		<th>Add day</th><!--Ngay nhap kho-->
		<th>End day</th><!--Ngay han su dung-->
		<th>Available</th><!--So luong san pham con trong kho hang-->
		<th>Buy</th><!--So luot mua-->
		<th>Price</th><!--Gia ban san pham-->
	</tr>
	<% @produces.each do |produce| %>
	<tr>
		<td><%= produce.name %></td>
		<td><%= produce.origin %></td>
		<td class="center"><%= produce.add_day %></td>
		<td class="center"><%= produce.end_day %></td>
		<td class="center"><%= produce.available %></td>
		<td><%= produce.buy %></td>
		<td><%= produce.price %></td>
		<td class="actions">
			<%= link_to("Show", {:action => 'show', :id => produce.id}, :class => 'action show') %>
			<%= link_to("Delete", '#', :class => 'action delete') %>
			<%= link_to("Submit", '#', :class => 'action submit') %>
		</td>
	</tr>
	<% end %>
  </table>
</div>